package com.company.dcm.service;

import com.company.dcm.entity.Device_Ota;
import io.netty.channel.ChannelHandlerContext;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.List;

@Service("Device_otaService") // 显式指定名称
public interface Device_otaService {
    void moveDevice(String ipPort);

    void saveDevice(String productType, String s) throws IOException;

    void saveDevice(String deviceCode, ChannelHandlerContext ctx) throws IOException;

    List<Device_Ota> getList(String product_type);

    boolean setUpgradeUponStartup(List<Integer> deviceId);

    void updateOTA(String s);

    void saveDeviceByOtaUpdate(String s,ChannelHandlerContext ctx);

    void delectDevice(ChannelHandlerContext ctx);
}
